package cn.wolfcode.qo;

public class QueryObject {
    //当前页和显示多少条数据
    private Integer currentPage = 1;
    private Integer pageSize = 5;

    public Integer getStart(){
        return (currentPage-1)*pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
